Allah quotes an example for those who disbelieved the woman of Noah and woman of Looth, they both were under Our two righteous servants among the servants, then they both cheated both of them, then they both did not get benefit anything from Allah with both of them; and were told: You both enter the fire with those who will be entering.
This verse teaches the fact that whoever it may be, even the wives or children of Messengers, if anyone is doing or existing in a condition of forgetting Adhikr-Three Time Knowledge-he/she won’t get any benefit with that Messenger. Both the wives of Noah and Looth cheated the Messengers means only their bodies were with Messengers, while their minds and soul were with their disbelieving people. See explanation 2: 9-10, 119; 11: 46; and 39: 19, 41.